package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.DishDto;
import com.itheima.reggie.entity.DishFlavor;

public interface DishService extends IService<Dish> {
    //因为MP只支持单表,所以我们要自己写业务方法,完成多表操作
    void saveWithFlavor(DishDto dishDto);

    //自定义方法菜品修改信息回显
    DishDto getByIdWithFlavor(Long id);

    void updateWithFlavor(DishDto dishDto);

}
